// import utils from "./../../utils/utils"
Page({
  data:{
    notifyList:[]
  },
  async onLoad(){
    this.getNotifyList()
  },
  async getNotifyList(){
    const {code,data} = await wx.http.get("/announcement")
    if(code !== 10000) return wx.utils.toast()
    this.setData({
      notifyList:data
    })
  }
})
